package pers.sports.service;

import pers.sports.entity.Student;
import pers.sports.vo.LoginInfo;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;

public interface StudentService {

    //判断学生密码是否正确
    Boolean StuPwdByNum(LoginInfo loginInfo) throws UnsupportedEncodingException, NoSuchAlgorithmException;

    //判断邮箱是否正确
    Boolean StuEmailByNum(String stuNum, String email);

    //根据学号修改密码
    void updatePwdByNum(String num, String pwd);

    //利用学号查id
    String findStuIdByNum(String num);


    Student findInfoByNum(String num);

    Boolean updateEmailById(String id, String email);
}
